package com.alibaba.travel.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.alibaba.travel.common.utils.PageUtils;
import com.alibaba.travel.article.entity.SpecialColumnEntity;

import java.util.Map;

/**
 * 专栏表
 *
 * @author wherezy
 * @email wherezy@tom.com
 * @date 2023-02-27 09:17:25
 */
public interface SpecialColumnService extends IService<SpecialColumnEntity> {
    /**
     * 查询所有公开专栏
     */
    PageUtils queryPage(Map<String, Object> params);
    /**
     * 查询私人专栏
     */
    PageUtils queryPrivateArticlePage(Map<String, Object> params);
    /**
     * 专栏添加文章
     */
    boolean addArticle(Long columnId, Long[] articleIds);
    /**
     * 专栏删除文章
     */
    boolean deleteArticle(Long columnId, Long[] articleIds);
}

